package com.shycloud.mido.basic.api.feign;


import com.shycloud.mido.common.core.constant.ServiceNameConstants;
import com.shycloud.mido.common.core.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 省份查询接口
 * @author yyy
 * @date 2019/2/28
 */
@FeignClient(value = ServiceNameConstants.BASIC_MOBILE_SERVICE)
public interface ProvincesService {

	/**
	 * 省份名称查询接口
	 * @return
	 */
	@GetMapping("/provinces/selProvinces")
	R selProvinces();

	/**
	 * 根据省份名查询城市列表
	 * @param provincesId
	 * @return
	 */
	@GetMapping("/provinces/getCities")
	R getCities(@RequestParam("provincesId")String provincesId);

	/**
	 * 根据城市名查询地区列表
	 * @param cityId
	 * @return
	 */
	@GetMapping("/provinces/getAreas")
	R getAreas(@RequestParam(value="cityId") String cityId);
}

